﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Student
{
    class LS
    {
        static string teacher = "唐僧";
        string n1;
        string n2;
        string n3;
        string n4;
        public string N1
        {
            get { return this.n1; }
            set { this.n1 = value; }
        }
        public string N2
        {
            get { return this.n2; }
            set { this.n2 = value; }
        }
        public string N3
        {
            get { return this.n3; }
            set { this.n3 = value; }
        }
        public string N4
        {
            get { return this.n4; }
            set { this.n4 = value; }
        }
        public void m()
        {
            Console.WriteLine("大家好，我是{0}，俺老师叫{1}", this.n1, teacher);
            Console.WriteLine("大家好，我是{0}，俺老师叫{1}", this.n2, teacher);
            Console.WriteLine("大家好，我是{0}，俺老师叫{1}", this.n3, teacher);
            Console.WriteLine("大家好，我是{0}，俺老师叫{1}", this.n4, teacher);
            w();
            Console.WriteLine("大家好，我是{0}，俺老师叫{1}", this.n1, teacher);
            Console.WriteLine("大家好，我是{0}，俺老师叫{1}", this.n2, teacher);
            Console.WriteLine("大家好，我是{0}，俺老师叫{1}", this.n3, teacher);
            Console.WriteLine("大家好，我是{0}，俺老师叫{1}", this.n4, teacher);
        }
        void w()
        {
            teacher = "嫦娥";
        }
    }
}